package cn.edu.neusoft.wuguangsheng.market.model;

import java.util.List;

import cn.edu.neusoft.wuguangsheng.market.bean.UserAllCommentBean;
import cn.edu.neusoft.wuguangsheng.market.iface.UserAllCommentIface;
import cn.edu.neusoft.wuguangsheng.market.listener.ListListener;
import cn.edu.neusoft.wuguangsheng.market.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

/**
 * Created by little on 2018/4/22.
 */

public class UserAllCommentModel extends RetrofitBaseModel implements UserAllCommentIface<UserAllCommentBean> {
    private AllService allService;
    private Retrofit retrofit;
    public UserAllCommentModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void showUserAllComment(String uid, ListListener<UserAllCommentBean> listListener) {
        Call<List<UserAllCommentBean>> call= allService.showUserAllComment(uid);
        callenqueueList(call,listListener);
    }
}
